import vue from 'vue'
import VueRouter from 'vue-router'
vue.use(VueRouter)

import index from '../components/index'
import register from '../components/register'
import login from '../components/login';







export default new VueRouter({

    routes: [
        {
            path: "/",
           redirect:'/index',

        },
       
        {
            path: "/index",
            component: index,
            name: 'index',

        },
        {
            path: "/login",
            name:'login',
            component: login
        },

        {
            path: "/register",
            name:'register',
            component: register
        },

       

    ]
})